package eurekaClient.myInterface;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

@FeignClient("eureka-service")
public interface FeignInterface {

	@RequestMapping(method = RequestMethod.GET, value = "/add")
    Integer add(@RequestParam(value = "a") Integer a, @RequestParam(value = "b") Integer b);
	
	@RequestMapping(method = RequestMethod.GET, value = "/toJsp")
	ModelAndView toJsp();
	
	@RequestMapping(method = RequestMethod.GET, value = "/hello/{name}")
	public String hello(@PathVariable("name") String name);
}
